<!-- 帮助说明 -->
<template lang="pug">
.home-wrap
    .pop(v-if='!dataInfo.url||!dataInfo.gptAddress') 缺少"应用发布标识"或"服务器地址"，请前往 "AI配置" 添加
    iframe(
        v-else
        :src="dataInfo.url+'/chat/share?shareId='+dataInfo.gptAddress"
        style="width: 100%; height: 100%;"
        frameborder="0"
        allow="*"
        )
</template>

<script setup>
import { ref, onMounted } from 'vue'
import apis from '@/apis'
import { storageGet, storageClear, storageSet } from '@/utils'
// http://192.168.110.180:3000/chat/share?shareId=2bnkooptxd3dy8ls4uwmd151
const dataInfo = ref({})
onMounted(() => {
    dataInfo.value = storageGet('cyGptInfosaveOne') || {}
    window.dataInfoInfo = () => {
        dataInfo.value = storageGet('cyGptInfosaveOne')
    }
})
</script>
<style lang="less" scoped>
.home-wrap{
    width: 100%;
    height: 100%;
    overflow: hidden;
    .pop{
        text-align: center;
        line-height: 150px;
    }
}
</style>